16. Exercise: Add Guests
Adding Guests
During this exercise, you'll add new guests to the database using the input text fields.
Exercise Code
Exercise: T07.05-Exercise-AddGuests
SOLUTION:
- Use findViewById to get the Edit text views
- Remove the fake data call in onCreate
- Implement addToWaitlist to read the text and call addNewGuest
- Create and implement addNewGuest to insert into the DB